Optimal. Leaf size=86 \[ \frac{x (3 c d-b e)}{c^2}-\frac{(2 c d-b e)^2 \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{e} x}{\sqrt{c d-b e}}\right )}{c^{5/2} \sqrt{e} \sqrt{c d-b e}}+\frac{e x^3}{3 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.107268, antiderivative size = 86, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 39, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {1149, 390, 208} \[ \frac{x (3 c d-b e)}{c^2}-\frac{(2 c d-b e)^2 \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{e} x}{\sqrt{c d-b e}}\right )}{c^{5/2} \sqrt{e} \sqrt{c d-b e}}+\frac{e x^3}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1149
Rule 390
Rule 208
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right )^3}{-c d^2+b d e+b e^2 x^2+c e^2 x^4} \, dx &=\int \frac{\left (d+e x^2\right )^2}{\frac{-c d^2+b d e}{d}+c e x^2} \, dx\\ &=\int \left (\frac{3 c d-b e}{c^2}+\frac{e x^2}{c}+\frac{4 c^2 d^2-4 b c d e+b^2 e^2}{c^2 \left (-c d+b e+c e x^2\right )}\right ) \, dx\\ &=\frac{(3 c d-b e) x}{c^2}+\frac{e x^3}{3 c}+\frac{(2 c d-b e)^2 \int \frac{1}{-c d+b e+c e x^2} \, dx}{c^2}\\ &=\frac{(3 c d-b e) x}{c^2}+\frac{e x^3}{3 c}-\frac{(2 c d-b e)^2 \tanh ^{-1}\left (\frac{\sqrt{c} \sqrt{e} x}{\sqrt{c d-b e}}\right )}{c^{5/2} \sqrt{e} \sqrt{c d-b e}}\\ \end{align*}
Mathematica [A] time = 0.0464509, size = 84, normalized size = 0.98 \[ -\frac{x (b e-3 c d)}{c^2}+\frac{(b e-2 c d)^2 \tan ^{-1}\left (\frac{\sqrt{c} \sqrt{e} x}{\sqrt{b e-c d}}\right )}{c^{5/2} \sqrt{e} \sqrt{b e-c d}}+\frac{e x^3}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 142, normalized size = 1.7 \begin{align*}{\frac{e{x}^{3}}{3\,c}}-{\frac{bex}{{c}^{2}}}+3\,{\frac{dx}{c}}+{\frac{{b}^{2}{e}^{2}}{{c}^{2}}\arctan \left ({cex{\frac{1}{\sqrt{ \left ( be-cd \right ) ce}}}} \right ){\frac{1}{\sqrt{ \left ( be-cd \right ) ce}}}}-4\,{\frac{bde}{c\sqrt{ \left ( be-cd \right ) ce}}\arctan \left ({\frac{cex}{\sqrt{ \left ( be-cd \right ) ce}}} \right ) }+4\,{\frac{{d}^{2}}{\sqrt{ \left ( be-cd \right ) ce}}\arctan \left ({\frac{cex}{\sqrt{ \left ( be-cd \right ) ce}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.9537, size = 632, normalized size = 7.35 \begin{align*} \left [\frac{2 \,{\left (c^{3} d e^{2} - b c^{2} e^{3}\right )} x^{3} + 3 \,{\left (4 \, c^{2} d^{2} - 4 \, b c d e + b^{2} e^{2}\right )} \sqrt{c^{2} d e - b c e^{2}} \log \left (\frac{c e x^{2} + c d - b e - 2 \, \sqrt{c^{2} d e - b c e^{2}} x}{c e x^{2} - c d + b e}\right ) + 6 \,{\left (3 \, c^{3} d^{2} e - 4 \, b c^{2} d e^{2} + b^{2} c e^{3}\right )} x}{6 \,{\left (c^{4} d e - b c^{3} e^{2}\right )}}, \frac{{\left (c^{3} d e^{2} - b c^{2} e^{3}\right )} x^{3} - 3 \,{\left (4 \, c^{2} d^{2} - 4 \, b c d e + b^{2} e^{2}\right )} \sqrt{-c^{2} d e + b c e^{2}} \arctan \left (-\frac{\sqrt{-c^{2} d e + b c e^{2}} x}{c d - b e}\right ) + 3 \,{\left (3 \, c^{3} d^{2} e - 4 \, b c^{2} d e^{2} + b^{2} c e^{3}\right )} x}{3 \,{\left (c^{4} d e - b c^{3} e^{2}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.739891, size = 275, normalized size = 3.2 \begin{align*} - \frac{\sqrt{- \frac{1}{c^{5} e \left (b e - c d\right )}} \left (b e - 2 c d\right )^{2} \log{\left (x + \frac{- b c^{2} e \sqrt{- \frac{1}{c^{5} e \left (b e - c d\right )}} \left (b e - 2 c d\right )^{2} + c^{3} d \sqrt{- \frac{1}{c^{5} e \left (b e - c d\right )}} \left (b e - 2 c d\right )^{2}}{b^{2} e^{2} - 4 b c d e + 4 c^{2} d^{2}} \right )}}{2} + \frac{\sqrt{- \frac{1}{c^{5} e \left (b e - c d\right )}} \left (b e - 2 c d\right )^{2} \log{\left (x + \frac{b c^{2} e \sqrt{- \frac{1}{c^{5} e \left (b e - c d\right )}} \left (b e - 2 c d\right )^{2} - c^{3} d \sqrt{- \frac{1}{c^{5} e \left (b e - c d\right )}} \left (b e - 2 c d\right )^{2}}{b^{2} e^{2} - 4 b c d e + 4 c^{2} d^{2}} \right )}}{2} + \frac{e x^{3}}{3 c} - \frac{x \left (b e - 3 c d\right )}{c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]